package org.osmdroid.events;

import android.graphics.Point;

import org.osmdroid.api.IGeoPoint;

/*
 * The listener interface for receiving map movement events. To process a map event, either implement
 * this interface or extend MapAdapter, then register with the MapView using
 * setMapListener.
 *
 * @author Theodore Hong
 */
public interface MapListener {
	/*
	 * Called when a map is scrolled.
	 */
	public boolean onScroll(ScrollEvent event);

	/*
	 * Called when a map is zoomed.
	 */
	public boolean onZoom(ZoomEvent event);

	//长按不移图
	public void longPress(Point pt);

	//双击
	public void doubleClick(Point pt);

	//单击 单击后
	public void singleClick(Point pt);

	//移图后抬起
	public void touchUp();

	//手指移动-切换到移图模式
	public void moveMap();

}
